<?php
Yii::setPathOfAlias('common',COMMON_FOLDER);
Yii::setPathOfAlias('frontend',FRONT_END);
Yii::setPathOfAlias('backend',BACK_END);
Yii::setPathOfAlias('resource',RESOURCES_FOLDER);

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'My Console Application',
    'components' => array(
        'db'=>array(
            'class'=>'CDbConnection', //    ======>   THIS IS IMPORTANT
            'connectionString' => 'mysql:host=127.0.0.1;dbname=fcms',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '654321@Abc',
            'charset' => 'utf8',
        ),

    ),
    'commandMap'=>array(
        'migrate'=>array(
            'class'=>'system.cli.commands.MigrateCommand',
            'migrationPath'=>'common.migrations',
            'migrationTable'=>'{{migration}}',
            'connectionID'=>'db',
        ),
    ),
);